//
//  wuLiuView.m
//  代理端
//
//  Created by mac on 16/3/8.
//  Copyright © 2016年 sliver. All rights reserved.
//

#import "wuLiuView.h"
@interface wuLiuView()

@property (weak, nonatomic) IBOutlet UILabel *companyNameLable;
@property (weak, nonatomic) IBOutlet UILabel *numberLable;
@property (weak, nonatomic) IBOutlet UILabel *internationLable;
@property (weak, nonatomic) IBOutlet UIImageView *jiantouImage;

@end
@implementation wuLiuView
-(void)awakeFromNib
{
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(toOtherVc)];
    self.internationLable.userInteractionEnabled = YES;
    
    [self.internationLable addGestureRecognizer:tap];
    [AutoLayoutUtil autoLayoutWith:self.subviews];

}
-(void)drawRect:(CGRect)rect
{
    UIBezierPath *patn = [UIBezierPath bezierPath];
    
    [patn moveToPoint:CGPointMake(10*KScr, CGRectGetMaxY(self.companyNameLable.frame)+5*KScr)];
    
    [patn addLineToPoint:CGPointMake(ScreenW-20*KScr,  CGRectGetMaxY(self.companyNameLable.frame)+5*KScr)];
    
    [DRINK_LIGHTGRAY_COLOR set];
    
    [patn stroke];
    
}
-(void)gaveMeModel:(OrderDetailModel *)model
{
    self.companyNameLable.text = model.logistics_company;
    self.numberLable.text = [NSString stringWithFormat:@"订单号:%@",model.logistics_airway_bill];

}
-(void)gavemeWuLiuModel:(WuLiuModel *)model
{
    self.internationLable.text = model.AcceptStation;
}
-(void)toOtherVc
{
    if ([self.deleget respondsToSelector:@selector(toOtherVc)]) {
        [self.deleget toOtherVc];
    }

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
